/*
 * Copyright (c) 2016 www.smarthome.com All rights reserved.
 * 本软件源代码版权归----所有,未经许可不得任意复制与传播.
 */
package com.smarthome.base.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.smarthome.base.dao.ShOrdersDao;
import com.smarthome.base.dao.base.BaseDaoImpl;
import com.smarthome.domain.bean.ShOrders;

/**
 * ShOrdersDao 实现类
 * @author Kongxiangyu
 * @since 2016-03-20
 */
@Repository("shOrdersDao")
public class ShOrdersDaoImpl extends BaseDaoImpl<ShOrders,Long> implements ShOrdersDao {
	private final static String NAMESPACE = "com.smarthome.base.dao.ShOrdersDao.";
	
	//返回本DAO命名空间,并添加statement
	public String getNameSpace(String statement) {
		return NAMESPACE + statement;
	}
	
	
	
	/**
	 * 得到count数据
	 * @param deviceSupplier
	 * @author shazhichao
	 * @return
	 */
	@Override
	public Integer queryShOrderCount(ShOrders shOrders) {
		return this.select(getNameSpace("selectEntryListCount"), shOrders);
	}

	
	/**
	 * 得到List信息
	 * @param deviceSupplier
	 * @author shazhichao
	 * @return
	 */
	@Override
	public  List<ShOrders> queryShOrdersListPage(ShOrders shOrders){
		//return this.selectList(getNameSpace("selectEntryList"), shOrders);
		return this.selectList(getNameSpace("queryShOrderXiYiPage"), shOrders);
		
	}
	
	
	/**
	 * 得到订单列表
	 */
	@Override
	public  List<ShOrders> queryShOrdersList(ShOrders shOrders){
		return this.selectList(getNameSpace("queryOrdersList"), shOrders);
	}
	
	
	/**
	 * 更新
	 */
	@Override
	public int batchUpdate(ShOrders shOrders) {
		return this.update(getNameSpace("updateByKey"), shOrders);
	}



	@Override
	public ShOrders getDetailById(Long id) {
		// TODO Auto-generated method stub
		return null;
	}



	@Override
	public Map<String, Object> getCountAll(ShOrders shOrders) {
		// TODO Auto-generated method stub
		return null;
	}
	
		
	
		
		
}